ANativeWindow_Buffer

Struct that represents a windows buffer.

A pointer can be obtained using {@link ANativeWindow_lock()}.

Members

Variables

bits
void* bits;

The actual bits.

format
int32_t format;

The format of the buffer. One of AHardwareBuffer_Format.

height
int32_t height;

The number of pixels that are shown vertically.

reserved
uint32_t[6] reserved;

Do not touch.

stride
int32_t stride;

The number of *pixels* that a line in the buffer takes in memory. This may be >= width.

width
int32_t width;

The number of pixels that are shown horizontally.

Meta